<!-- 列表排序 -->
<template>
  <div class="kkxcxzrere pr">
    <n-input-number 
    v-model:value="row.paixu" 
    placeholder="" size="medium" 
    @blur="xcxcrert"
   />
  </div>
</template>
<script lang='ts' setup>
import { dxget } from "../../util/index";
const props = defineProps({
  row: { type: Object },
  type: { type: Number },
});
const emit = defineEmits(["callBack"]);
const paissrtrt = (data) => {
  console.log(data);
  // paixu(data)
}
const xcxcrert = (data)=>{
  paixu(props.row.paixu)
}
const paixu = async (paixu) => {
  const { errno, data }: any = await dxget("util/changpaixu", {
    databaseName: props.row.databaseName,//表面
    sjk: props.row.sjk, //mysql 的数据库名称  如
    id: props.row.id,
    paixu
  });
  if (errno == 0) {
    window.$message.success(data);
  } else {
    console.error(data);
  }
  emit("callBack");
};
</script>
<style scoped>
.dsfdsrre i {
  color: #999;
}

.dsfdsrre i:hover {
  color: #333;
}
</style>